package com.dycc.main_componet.view.impl;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;

import com.alibaba.android.arouter.launcher.ARouter;
import com.dycc.main_componet.R;

/**
 * Created by wxk on 2018/1/29 0029.
 */

public class SplashActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        handleWelcome();
    }

    /**
     * 处理欢迎页面
     */
    private void handleWelcome() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                ARouter.getInstance().build("/main_componet/activity/MainActivity")
                        .greenChannel().navigation();//跳过所有拦截器
//                finish();
            }
        }, 1500);
    }
}
